package com.example.bcscb;

import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import com.alicp.jetcache.anno.config.EnableMethodCache;
import com.example.bcscb.config.MultipleDataSourcesConfig.DynamicDataSourceRegister;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;

/**
 * @author bc
 */
@EnableMethodCache(basePackages = "com.example.bcscb")
@EnableCreateCacheAnnotation
// 注册动态多数据源
@Import({DynamicDataSourceRegister.class})
@SpringBootApplication
public class BcscbApplication {

    public static void main(String[] args) {
        SpringApplication.run(BcscbApplication.class, args);
    }

}
